package org.hxyjs.service;

import org.hxyjs.dto.DTO;
import org.hxyjs.entity.Label;
import org.hxyjs.page.PageInfo;

public interface LabelService {
    /**
     * 查询全部
     * @return
     */
    public DTO<Label> getAllLabels() throws Exception;
    /**
     * 根据主键查询
     * @return
     */
    public DTO<Label> getLabelByUno(String uno) throws Exception;
    /**
     *删除
     * @param uno
     * @return
     */
    public DTO<Label> deleteLabel(String uno) throws Exception;
    /**
     *  修改
     * @param label
     * @return
     */
    public DTO<Label> updateLabel(Label label)  throws Exception;
    /**
     *  增加
     * @param label
     * @return
     */
    public DTO<Label> addLabelByUno(Label label)  throws Exception;

    public DTO<Label> getLabelsByPage(PageInfo pageInfo) throws Exception;

    public DTO<Label> getLabelsWithOrders(String  uno)  throws Exception;

    public DTO<Label> activate(String  uno)  throws Exception;

    public DTO<Label> lettory(String  uno,String giftName)  throws Exception;

}
